Chris Pollett > Old Classes >
CS175

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Quizzes]

Practice Exams:
  [Mid]  [Final]

                           












CS175 Fall 2014Practice Midterm

Everyone is expected to know what we've talked about for each of the three languages discussed in this course: Java, Objective-C, and Javascript. Questions about how to get a phone to do something though can be answered for any of the platforms we've considered. To study for the midterm I would suggest you: (1) Know how to do (by heart) all the practice problems. (2) Go over your notes at least three times. Second and third time try to see how much you can remember from the first time. (3) Go over the homework problems. (4) Try to create your own problems similar to the ones I have given and solve them. (5) Skim the relevant sections from the book. (6) If you want to study in groups, at this point you are ready to quiz each other. The practice midterm is below. Here are some facts about the actual midterm: (a) It is closed book, closed notes. Nothing will be permitted on your desk except your pen (pencil) and test. (b) You should bring photo ID. (c) There will be more than one version of the test. Each version will be of comparable difficulty. (d) One problem (less typos) on the actual test will be from the practice test.

  1. Give at least one pro and one con to using a device simulator versus a device emulator. Explain your answer.
  2. Give a example header file and implementation file for an Objective-C class with at least one property, one instance method and one class method.
  3. Give brief XML code examples of some Android layouts. Explain each of the following Android concepts: Activity, Intent, Service.
  4. What is a browser viewport? Explain with some examples for the browser viewport can be controlled using the HTML 5 meta viewport tags.
  5. Explain how development can be carried out on GitHub using the fork/pull request paradigm.
  6. For the platform of your choice explain with code how to create an app that has a text field on it. When the text field is clicked a soft keyboard (recall some Android devices have hardware keyboards) comes up. When return is hit data entered from soft keyboard, is echoed in a label/textview .
  7. Explain how to write a log message or toast message for the platform of your choice. If the platform allows different log levels, explain these.
  8. Explain for the platform of your choice and with code how to make an app which in landscape mode has a 2x2 array of buttons, but in portrait mode has a single column of four buttons.
  9. For the platform of your choice write an app that creates a file foo.txt and writes the number 100 into it. It then reads this file back and output a log message with this number.
  10. For the platform of your choice explain how to open a sqlite database issue a "select foo from bar" query and write to the log all the rows of foo from that table.